/**
 * Created by yifangts on 2020/6/11.
 */
export default {
  data() {
    return {
      page: {
        pageSize: 10,
        pageNum: 1
      },
      pagination: {
        total: 0, // 总条数
        layout: 'total, sizes, prev, pager, next, jumper',
        pageSize: 12, // 每页显示条目个数
        pageSizes: [8, 10, 12, 20], // 每页显示个数选择器
        currentPage: 1 // 当前页数
      }
    }
  },
  methods: {
    handleSizeChange(val) {
      this.page.pageSize = val
      this.getList(this.page)
    },
    handleCurrentChange(val) {
      this.page.pageNum = val
      this.getList(this.page)
    }
  }
}
